Part Number Hot Search : 
VFT1080S AU9226 NDB610AE EVKIT T520AE ACDRG 70N1T 0240A
Product Description
Full Text Search
 

To Download TMS77C82 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 1 post office box 1443 ? houston, texas 772511443  cmos/ eeprom/ eprom technologies on a single device mask-rom devices for high-volume production one-time-programmable (otp) eprom devices for low-volume production reprogrammable-eprom devices for prototyping purposes  internal system memory configurations on-chip program memory versions rom: 2k, 4k, or 8k bytes eprom: 8k bytes data eeprom: 256 bytes static ram: 128 or 256 bytes usable as registers  flexible operating features low-power modes: standby and halt commercial, industrial, and automotive temperature ranges clock options divide-by-1 (2 mhz 5 mhz sysclk) phase-locked loop (pll) divide-by-4 (0.5 mhz 5 mhz sysclk) supply voltage (v cc ) 5 v 10%  16-bit general purpose timer software configurable as a 16-bit event counter, or a 16-bit pulse accumulator, or a 16-bit input capture functions, or two compare registers, or a self-contained pwm function software programmable input polarity 8-bit prescaler, providing a 24-bit real-time timer  on-chip 24-bit watchdog timer eprom / otp devices: eprom '712a standard watchdog eprom '712b hard watchdog mask-rom devices: hard watchdog, simple counter, or standard watchdog  flexible interrupt handling two s oftware programmable interrupt levels global-and individual-interrupt masking programmable rising- or falling-edge detect individual interrupt vectors  serial peripheral interface (spi) variable-length high-speed shift register synchronous master / slave operation  tms370 series compatibility register-to-register architecture 128 or 256 general-purpose registers 14 powerful addressing modes instructions upwardly compatible with all tms370 devices  cmos/ ttl compatible i / o pins / packages all peripheral function pins software configurable for digital i / o 21 bidirectional pins, 1 input pin 28-pin plastic and ceramic dip, or leaded chip carrier (lcc) packages  workstation / pc-based development system c compiler and c source debugger real-time in-circuit emulation extensive breakpoint / trace capability multi-window user interface microcontroller programmer production data information is current as of publication date. products conform to specifications per the terms of texas instruments standard warranty. production processing does not necessarily include testing of all parameters. copyright ? 1997, texas instruments incorporated please be aware that an important notice concerning availability, standard warranty, and use in critical applications of texas instruments semiconductor products and disclaimers thereto appears at the end of this data sheet. 5 6 7 8 9 10 11 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 d6 d7 a7 v cc xtal2 / clkin xtal1 a6 a5 a4 a3 a2 v ss a1 a0 d3 reset d4 spisomi spiclk spisimo t1ic / cr t1pwm t1evt mc int3 int2 int1 d5 jd and n packages ( top view ) 3212827 12 13 25 24 23 22 21 20 19 spisomi spiclk spisimo t1ic / cr t1pwm t1evt mc xtal2 / clkin xtal1 a6 a5 a4 a3 a2 426 14 15 16 1718 ss a1 a0 d5 int1 int2 int3 v a7 d7 d6 d3 reset d4 fz and fn packages ( top view ) cc v
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 2 post office box 1443 ? houston, texas 772511443 pin descriptions 28 pins dip and lcc i/o 2 description name no. a0 a1 a2 a3 a4 a5 a6 a7 14 13 11 10 9 8 7 3 i/o port a is a general-purpose bidirectional i / o port. d3 d4 d5 d6 d7 28 26 15 1 2 i/o port d is a general-purpose bidirectional i / o port. d3 is also configurable as sysclk. int1 int2 int3 16 17 18 i i/o i/o external interrupt (non-maskable or maskable) / general-purpose input pin external maskable interrupt input / general-purpose bidirectional pin external maskable interrupt input / general-purpose bidirectional pin t1ic / cr t1pwm t1evt 22 21 20 i/o timer1 input capture / counter reset input pin / general-purpose bidirectional pin timer1 pwm output pin / general-purpose bidirectional pin timer1 external event input pin / general-purpose bidirectional pin spisomi spisimo spiclk 25 23 24 i/o spi slave output pin, master input pin / general-purpose bidirectional pin spi slave input pin, master output pin / general-purpose bidirectional pin spi bidirectional serial clock pin / general-purpose bidirectional pin reset 27 i/o system reset bidirectional pin; as input pin, reset initializes the microcontroller; as open-drain output, reset indicates that an internal failure was detected by watchdog or oscillator fault circuit. mc 19 i mode control input pin; enables eeprom write protection override (wpo) mode, also eprom v pp xtal2 / clkin xtal1 5 6 i o internal oscillator crystal input / external clock source input internal oscillator output for crystal v cc 4 positive supply voltage v ss 12 ground reference 2 i = input, o = output
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 3 post office box 1443 ? houston, texas 772511443 functional block diagram interrupts t1ic/cr t1evt t1pwm v system control clock options: divide-by-4 or divide-by-1 (pll) ram 128 or 256 bytes cpu port a port d timer 1 watchdog int1 int2 int3 xtal1 xtal2/ clkin mc spisomi spisimo spiclk serial peripheral interface reset ss v cc program memory rom: 2k, 4k, or 8k bytes eprom: 8k bytes data eeprom 0 or 256 bytes 5 8 description the tms370c010, tms370c012, tms370c311, tms370c310, tms370c312, tms370c712, and se370c712 devices are members of the tms370 family of single-chip 8-bit microcontrollers. unless otherwise noted, the term tms370cx1x refers to these devices. the tms370 family provides cost-effective real-time system control through integration of advanced peripheral-function modules and various on-chip memory configurations. the tms370cx1x family of devices is implemented using high-performance silicon-gate cmos eprom and eeprom technologies. low-operating power, wide-operating temperature range, and noise immunity of cmos technology coupled with the high performance and extensive on-chip peripheral functions make the tms370cx1x devices attractive for system designs for automotive electronics, industrial motors, computer peripheral controls, telecommunications, and consumer applications. all tms370cx1x devices contain the following on-chip peripheral modules:  serial peripheral interface (spi)  one 24-bit general-purpose watchdog timer  one 16-bit general-purpose timer with an 8-bit prescaler
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 4 post office box 1443 ? houston, texas 772511443 description (continued) table 1 provides a memory configuration overview of the tms370cx1x devices. table 1. memory configurations device program memory (bytes) data memory (bytes) 28 pin packages rom eprom ram eeprom tms370c010a 4k e 128 256 fn plcc n pdip tms370c012a 8k e 256 256 fn plcc n pdip tms370c311a 2k e 128 fn plcc n pdip tms370c310a 4k e 128 fn plcc n pdip tms370c312a 8k e 128 fn plcc n pdip tms370c712a, tms370c712b e 8k 256 256 fn plcc n pdip se370c712a 2 , se370c712b 2 e 8k 256 256 fz clcc jd cdip 2 system evaluators and development are for use only in prototype environment and their reliability has not been characterized. the suffix letter (a or b) appended to the device names shown in the device column of tables 1 and 2 indicates the configuration of the device. rom or eprom devices have different configurations as indicated in table 2. rom devices with the suffix letter a are configured through a programmable contact during manufacture. table 2. suffix letter configuration device 3 watchdog timer clock low-power mode eprom a standard divide-by-4 (standard oscillator) enabled eprom b hard divide-by-1 (pll) enabled standard rom a hard divide-by-4 or divide-by-1 (pll) enabled or disabled simple 3 refer to the adevice numbering conventionso section for device nomenclature and to the adevice part numberso section for orderi ng. the 2k bytes, 4k bytes, and 8k bytes of mask-programmable rom in the associated tms370cx1x devices are replaced in the tms370c712 with 8k bytes of eprom. all other available memory and on-chip peripherals are identical, with the exception of no data eeprom on the tms370c311, tms370c310, and tms370c312 devices. the otp (tms370c712) device and reprogrammable (se370c712) device are available. tms370c712 otp devices are available in plastic packages. this microcontroller is effective to use for immediate production updates for other members of the tms370cx1x family or for low volume production runs when the mask charge or cycle time for the low-cost mask rom devices is not practical. the se370c712 has a windowed ceramic package to allow reprogramming of the program eprom memory during the development / prototyping phase of design. the se370c712 devices allow quick updates to breadboards and prototype systems while iterating initial designs.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 5 post office box 1443 ? houston, texas 772511443 description (continued) the tms370cx1x family provides two low-power modes (standby and halt) for applications where low-power consumption is critical. both modes stop all cpu activity (that is, no instructions are executed). in the standby mode, the internal oscillator and the general-purpose timer remain active. in the halt mode, all device activity is stopped. the device retains all ram data and peripheral configuration bits throughout both low-power modes. the tms370cx1x features advanced register-to-register architecture that allows direct arithmetic and logical operations without requiring an accumulator (for example, add r24, r47; add the contents of register 24 to the contents of register 47 and store the result in register 47). the tms370cx1x family is fully instruction-set-compatible, providing easy transition between members of the tms370 8-bit microcontroller family. the spi provides a convenient method of serial interaction for high-speed communications between simpler shift register-type devices, such as display drivers, analog-to-digital (a / d) converters, pll, input / output (i / o) expansion, or other microcontrollers in the system. the tms370cx1x family provides the system designer with economical, efficient solution to real-time control applications. the tms370 family extended development system (xds ? ) and compact development tool (cdt ? ) solve the challenge of efficiently developing the software and hardware required to design the tms370cx1x into an ever-increasing number of complex applications. the application source code can be written in assembly and c language, and the output code can be generated by the linker. the tms370 family xds development tool communicates through a standard rs-232-c interface with an existing personal computer. this allows the use of the pc's editors and software utilities already familiar to the designer. the tms370 family xds emphasizes ease-of-use through extensive menus and screen windowing so that a system designer can begin developing software with minimal training. precise real-time, in-circuit emulation and extensive symbolic debug and analysis tools ensure efficient software and hardware implementation as well as reducing the time-to-market cycle. the tms370cx1x family together with the tms370 family xds22, cdt370, design kit, starter kit, software tools, the se370c712 reprogrammable devices, comprehensive product documentation, and customer support provide a complete solution to the needs of the system designer. central processing unit (cpu) the cpu on the tms370cx1x device is the high-performance 8-bit tms370 cpu module. the 'x1x implements an efficient register-to-register architecture that eliminates the conventional accumulator bottleneck. the complete 'x1x instruction map is shown in table 17 in the tms370cx1x instruction set overview section. the '370cx1x cpu architecture provides the following components: cpu registers:  a stack pointer that points to the last entry in the memory stack  a status register that monitors the operation of the instructions and contains the global interrupt-enable bits  a program counter (pc) that points to the memory location of the next instruction to be executed xds and cdt are trademarks of texas instruments incorporated.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 6 post office box 1443 ? houston, texas 772511443 central processing unit (cpu) (continued) figure 1 illustrates the cpu registers and memory blocks. reserved 2 peripheral file not available 3 100fh 1010h 1f00h 1fffh 2000h 5fffh 6000h 77ffh 7800h interrupts and reset vectors; trap vectors 104fh 1050h 1effh reserved 2 7fffh 0 ram (includes up to 256-byte registers file) 0 15 program counter 7 legend: z=zero ie1=level 1 interrupts enable c=carry v=overflow n=negative ie2=level 2 interrupts enable ie1 ie2 z n c 0 1 2 3 4 5 6 7 v status register (st) stack pointer (sp) r0(a) r1(b) r3 r127 0000h 0001h 0002h 007fh r255 0003h r2 00ffh 256-byte data eeprom 2k-byte rom (7800h 7fffh) 6fffh 7000h 8k-byte rom/eprom (6000h 7fffh) 4k-byte rom (7000h 7fffh) 7fc0h 7fbfh 128-byte ram (0000h007fh) 007fh 0080h 00ffh 0100h 256-byte ram (0000h00ffh) 0000h 2 reserved means the address space is reserved for future expansion. 3 not available means the address space is not accessible. figure 1. programmer's model a memory map includes:  128- or 256-byte general-purpose ram that can be used for data memory storage, program instructions, general purpose register, or the stack  a peripheral file that provides access to all internal peripheral modules, system-wide control functions, and eeprom/ eprom programming control  256-byte eeprom module, that provides in-circuit programmability and data retention in power-off conditions  2k-, 4k-, or 8k-byte rom or 8k-byte eprom stack pointer (sp) the sp is an 8-bit cpu register. stack operates as a last-in, first-out, read / write memory. typically, the stack is used to store the return address on subroutine calls as well as the status register (st) contents during interrupt sequences. the sp points to the last entry or top of the stack. the sp is incremented automatically before data is pushed onto the stack and decremented after data is popped from the stack. the stack can be placed anywhere in the on-chip ram.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 7 post office box 1443 ? houston, texas 772511443 central processing unit (cpu) (continued) status register (st) the st monitors the operation of the instructions and contains the global interrupt-enable bits. the st includes four status bits (condition flags) and two interrupt-enable bits.  the four status bits indicate the outcome of the previous instruction; conditional instructions (for example, the conditional-jump instructions) use the status bits to determine program flow.  the two interrupt-enable bits control the two interrupt levels. the st, status-bit notation, and status-bit definitions are shown in table 3. table 3. status registers 7 6 5 4 3 2 1 0 c n z v ie2 ie1 reserved reserved rw-0 rw-0 rw-0 rw-0 rw-0 rw-0 r = read, w = write, 0 = value after reset program counter (pc) the contents of the pc point to the memory location of the next instruction to be executed. the pc consists of two 8-bit registers in the cpu: the program counter high (pch) and program counter low (pcl). these registers contains the most significant byte (msbyte) and least significant byte (lsbyte) of a 16-bit address. during reset, the contents of the reset vector (7ffeh, 7fffh) are loaded into the pc. the pch (msbyte of the pc) is loaded with the contents of memory location 7ffeh, and the pcl (lsbyte of the pc) is loaded with the contents of memory location 7fffh. figure 2 shows this operation using an example value of 6000h as the contents of the reset vector. memory program counter (pc) 60 00 pch pcl 60 00 0000h 7ffeh 7fffh figure 2. program counter after reset memory map the tms370cx1x architecture is based on the von neuman architecture, where the program memory and data memory share a common address space. all peripheral input / output is memory mapped in this same common address space. as shown in figure 3, the tms370cx1x provides memory-mapped ram, rom, data eeprom, i / o pins, peripheral functions, and system-interrupt vectors. the peripheral file contains all i / o port control, peripheral status and control, eeprom, eprom, and system-wide control functions. the peripheral file is located between 1010h to 104fh and is divided logically into four peripheral file frames of 16 bytes each. each on-chip peripheral is assigned to a separate frame through which peripheral control and data information is passed.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 8 post office box 1443 ? houston, texas 772511443 tms370cx1x cpu (continued) 256-byte ram (register file / stack) 128-byte ram (register file / stack) reserved 2 peripheral file reserved 2 256-byte data eeprom not available 3 7fc0h trap 15 0 7fe0h reserved 7ff4h interrupt 3 interrupt 2 interrupt 1 reset 1010h 1020h system control digital port control 1030h 1040h timer 1 peripheral control vectors 7fdfh 7ff3h 7ff5h 101fh 102fh 103fh 104fh not available 3 spi control timer 1 serial peripheral interface 7ffah 7ffbh 7ffch 7ffdh 7ffeh 7fffh 0000h 0080h 007fh 1010h 104fh 1050h 1effh 1f00h 1fffh 2000h 5fffh 6000h 6fffh 7000h 77ffh 7800h ffffh 100fh 8k bytes start at 6000h 4k bytes start at 7000h 2k bytes start at 7800h interrupts and reset vectors; trap vectors 7fbfh 7fc0h 7fffh 8000h 7ff6h 7ff7h 7ff8h 7ff9h peripheral file control registers 0100h 00ffh 2 reserved means that the address space is reserved for future expansion. 3 not available means that the address space is not accessible. figure 3. tms370cx1x memory map ram/ register file (rf) locations within the ram address space can serve as the rf, general-purpose read / write memory, program memory, or the stack instructions. the tms370cx10, tms370cx11, and tms370c312 contain 128 bytes of internal ram mapped beginning at location 0000h (r0) and continuing through location 007fh (r127) which is shown in table 4 along with '712 devices. table 4. ram memory map 'x10, 'x11 and '312 '712 ram size 128 bytes 256 bytes memory mapped 0000h 007fh 0000h 00ffh the first two registers, r0 and r1, are also called register a and b, respectively. some instructions implicitly use register a or b; for example, the instruction ldsp (load sp) assumes that the value to be loaded into the stack pointer is contained in register b. registers a and b are the only registers cleared on reset.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 9 post office box 1443 ? houston, texas 772511443 peripheral file (pf) the tms370cx1x control registers contain all the registers necessary to operate the system and peripheral modules on the device. the instruction set includes some instructions that access the pf directly. these instructions designate the register by the number of the pf relative to 1000h, preceded by p0 for a hexadecimal designator or p for a decimal designator. for example, the system-control register 0 (sccr0) is located at address 1010h; its peripheral file hexadecimal designator is p010, and its decimal designator is p16. table 5 shows the tms370cx1x pf address map. table 5. tms370cx1x peripheral file address map address range peripheral file designator description 1000h 100fh p000 p00f reserved 1010h 101fh p010 p01f system and eprom / eeprom control registers 1020h 102fh p020 p02f digital i / o port control registers 1030h 103fh p030 p03f spi registers 1040h 104fh p040 p04f timer 1 registers 1050h 10ffh p050 p0ff reserved data eeprom the tms370cx1x devices, containing 256 bytes of data eeprom, have memory mapped beginning at location 1f00h and continuing through location 1fffh. writing to the data eeprom module is controlled by the data eeprom control register (deectl) and the write-protection register (wpr). programming algorithm examples are available in the tms370 family user's guide (literature number spnu127) or the tms370 family data manual (literature number spns014b). the data eeprom features include the following:  programming: bit-, byte-, and block-write / erase modes internal charge pump circuitry. no external eeprom programming voltage supply is needed. control register: data eeprom programming is controlled by the deectl located in the pf frame beginning at location p01a. see table 6. in-circuit programming capability. there is no need to remove the device to program.  write protection. writes to the data eeprom are disabled during the following conditions. reset. all programming of the data eeprom module is halted. write protection active. there is one write-protect bit per 32-byte eeprom block. low-power mode operation  write protection can be overridden by applying 12 v to mc. table 6. data eeprom and program eprom control registers memory map address symbol name p01a deectl data eeprom control register p01b e reserved p01c epctl program eprom control register
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 10 post office box 1443 ? houston, texas 772511443 program eprom 2 the tms370c712 device contains 8k bytes of eprom mapped, beginning at location 6000h and continuing through location 7fffh as shown in figure 3. reading the program eprom modules is identical to reading other internal memory. during programming, the eprom is controlled by the eprom control register (epctl). the program eprom module features include:  programming in-circuit programming capability if v pp is applied to mc control register: eprom programming is controlled by the eprom control register (epctl) located in the peripheral file (pf) frame at location p01ch as shown in table 6.  write protection: writes to the program eprom are disabled under the following conditions: reset: all programming to the eprom module is halted low-power modes 13 v not applied to mc program rom 2 the program rom consists of 2k to 8k bytes of mask programmable read-only memory (see table 7). the program rom is used for permanent storage of data or instructions. programming of the mask rom is performed at the time of device fabrication. table 7. program rom memory map 'x11 'x10 'x12 rom size 2k bytes 4k bytes 8k bytes memory mapped 7800h 7fffh 7000h 7fffh 6000h 7fffh system reset the system-reset operation ensures an orderly start-up sequence for the tms370cx1x cpu-based device. there are up to three different actions that can cause a system reset to the device. two of these actions are generated internally, while one (reset pin) is controlled externally. these actions are as follows:  watchdog (wd) timer. a watchdog-generated reset occurs if an improper value is written to the wd key register, or if the re-initialization does not occur before the watchdog timer timeout . see the tms370 family user's guide (literature number spnu127) for more information.  oscillator reset. reset occurs when the oscillator operates outside of the recommended operating range. see the tms370 family user's guide (literature number spnu127) for more information.  external reset pin. a low level signal can trigger an external reset. to ensure a reset, the external signal should be held low for one sysclk cycle. signals of less than one sysclk can generate a reset. see the tms370 family user's guide (literature number spnu127) for more information. once a reset source is activated, the external reset pin is driven (active) low for a minimum of eight sysclk cycles. this allows the 'x1x device to reset external system components. additionally, if a cold start (v cc is off for several hundred milliseconds) condition or oscillator failure occurs or the reset pin is held low, then the reset logic holds the device in a reset state for as long as these actions are active. 2 memory addresses 7ff8h through 7fffh are reserved for interrupt and reset vectors. trap vectors, used with trap0 through trap15 instructions are located between addresses 7fc0h and 7fdfh.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 11 post office box 1443 ? houston, texas 772511443 system reset (continued) after a reset, the program can check the oscillator-fault flag (osc flt flag, sccr0.4), the cold-start flag (cold start, sccr0.7) and the watchdog reset (wd ovrfl int flag, t1ctl2.5) to determine the source of the reset. a reset does not clear these flags. table 8 depicts the reset sources. table 8. reset sources register address pf bit no. control bit source of reset sccr0 1010h p010 7 cold start cold (power-up) sccr0 1010h p010 4 osc flt flag oscillator out of range t1ctl2 104ah p04a 5 wd ovrfl int flag watchdog timer timeout once a reset is activated, the following sequence of events occurs: 1. the cpu registers are initialized: st = 00h, sp = 01h (reset state). 2. register a and b are initialized to 00h (no other ram is changed). 3. the contents of the lsbyte of the reset vector (07ffh) are read and stored in the pcl. 4. the contents of the msbyte of the reset vector (07feh) are read and stored in the pch. 5. program execution begins with an opcode fetch from the address pointed to the pc. the reset sequence takes 20 sysclk cycles from the time the reset pulse is released until the first opcode fetch. during a reset, ram contents (except for registers a and b) remain unchanged, and the module control register bits are initialized to their reset state.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 12 post office box 1443 ? houston, texas 772511443 interrupts the tms370 family software-programmable interrupt structure permits flexible on-chip and external interrupt configurations to meet real-time interrupt-driven application requirements. the hardware interrupt structure incorporates two priority levels as shown in figure 4. interrupt level 1 has a higher priority than interrupt level 2. the two priority levels can be masked independently by the global interrupt mask bits (ie1 and ie2) of the st. timer1 cpu nmi logic enable ie1 ie2 level 1 int level 2 int t1 pri priority overflow compare1 ext edge compare2 input capture watchdog ext int 3 int3 pri int 3 status reg ext int1 int1 pri int1 spi int spi pri spi ext int 2 int2 pri int 2 figure 4. interrupt control each system interrupt is configured independently to either the high- or low-priority chain by the application program during system initialization. within each interrupt chain, the interrupt priority is fixed by the position of the system interrupt. however, since each system interrupt is selectively configured on either the high- or low-priority-interrupt chain, the application program can elevate any system interrupt to the highest priority. arbitration between the two priority levels is performed within the cpu. arbitration within each of the priority
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 13 post office box 1443 ? houston, texas 772511443 interrupts (continued) chains is performed within the peripheral modules to support interrupt expansion for future modules. pending-interrupts are serviced upon completion of current instruction execution, depending on their interrupt mask and priority conditions. the tms370cx1x has five hardware system interrupts (plus reset ) as shown in table 9. each system interrupt has a dedicated vector located in program memory through which control is passed to the interrupt service routines. a system interrupt may have multiple interrupt sources. all of the interrupt sources are individually maskable by local interrupt enable control bits in the associated peripheral file. each interrupt source flag bit is individually readable for software polling or to determine which interrupt source generated the associated system interrupt. two of the system interrupts are generated by on-chip peripheral functions, and three external interrupts are supported. software configuration of the external interrupts is performed through the int1, int2, and int3 control registers in peripheral file frame 1. each external interrupt is individually software configurable for input polarity (rising or falling edge) for ease of system interface. external interrupt int1 is software configurable as either a maskable or non-maskable interrupt. when int1 is configured as non-maskable, it cannot be masked by the individual or global enable mask bits. the int1 nmi bit is protected during non-privileged operation and, therefore, should be configured during the initialization sequence following reset. to maximize pin flexibility, external interrupts int2 and int3 can be software configured as general purpose input / output pins if the interrupt function is not required (int1 can be similarly configured as an input pin). table 9. hardware system interrupts interrupt source interrupt flag system interrupt vector address priority 2 external reset watchdog overflow oscillator fault detect cold start wd ovrfl int flag osc flt flag reset 3 7ffeh, 7fffh 1 external int1 int1 flag int1 3 7ffch, 7ffdh 2 external int2 int2 flag int2 3 7ffah, 7ffbh 3 external int3 int3 flag int3 3 7ff8h, 7ff9h 4 spi receiver (rx) / transmitter (tx) data complete spi int flag spiint 7ff6h, 7ff7h 5 timer 1 overflow timer 1 compare 1 timer 1 compare 2 timer 1 external edge timer 1 input capture 1 watchdog overflow t1 ovrfl int flag t1c1 int flag t1c2 int flag t1edge int flag t1ic1 int flag wd ovrfl int flag t1int 7ff4h, 7ff5h 6 2 relative priority within an interrupt level 3 release microcontroller from standby and halt low-power modes release microcontroller from standby low-power mode privileged operation and eeprom write protection override the tms370cx1x family is designed with significant flexibility to enable the designer to software-configure the system and peripherals to meet the requirements of a variety of applications. the nonprivileged mode of operation ensures the integrity of the system configuration, once it is defined for an application. following a hardware reset, the tms370cx1x operates in the privileged mode, where all peripheral file registers have unrestricted read / write access, and the application program configures the system during the initialization sequence following reset. as the last step of system initialization, the privilege disable bit (sccr2.0) is
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 14 post office box 1443 ? houston, texas 772511443 privileged operation and eeprom write protection override (continued) set to 1 to enter the nonprivileged mode, disabling write operations to specific configuration-control bits within the pf. table 10 displays the system-configuration bits which are write-protected during the nonprivileged mode and must be configured by software prior to exiting the privileged mode. table 10. privilege bits register 2 control bit name location control bit sccro p010.6 osc power sccr1 p011.2 p011.4 memory disable autowait disable sccr2 p012.0 p012.1 p012.3 p012.4 p012.6 p012.7 privilege disable int1 nmi cpu stest bus stest pwrdwn / idle halt / standby spipri p03f.5 p03f.6 p03f.7 spi espen spi priority spi stest t1pri p04f.6 p04f.7 t1 priority t1 stest 2 the privilege bits are shown in a bold typeface in the peripheral file frame 1 section. the write protect override (wpo) mode provides an external hardware method of overriding the write protection registers (wprs) of data eeprom on the tms370cx1x. wpo mode is entered by applying a 12-v input to the mc pin after the reset pin input goes high (logic 1). the high voltage on the mc pin during the wpo mode is not the programming voltage for the data eeprom or program eprom. all eeprom programming voltages are generated on-chip. the wpo mode provides hardware system level capability to modify the content of data eeprom while the device remains in the application but only while requiring a 12 v external input on the mc pin (normally not available in the end application except in a service or diagnostic environment). low-power and idle modes the tms370cx1x devices have two low-power modes (standby and halt) and an idle mode. for mask-rom devices, low-power modes can be disabled permanently through a programmable contact at the time when the mask is manufactured. the standby and halt low-power modes significantly reduce power consumption by reducing or stopping the activity of the various on-chip peripherals when processing is not required. each of the low-power modes is entered by executing the idle instruction when the pwrdwn / idle bit in sccr2 has been set to 1. the halt / standby bit in sccr2 controls the low-power mode selection. in the standby mode (halt / standby = 0), all cpu activity and most peripheral module activity is stopped; however, the oscillator, internal clocks, and timer 1 remain active. system processing is suspended until a qualified interrupt (hardware reset , external interrupt on int1, int2, int3, or timer 1 interrupt) is detected. in the halt mode (halt / standby = 1), the tms370cx1x is placed in its lowest power consumption mode. the oscillator and internal clocks are stopped, causing all internal activity to be halted. system activity is suspended until a qualified interrupt (hardware reset , external interrupt on the int1, int2, or int3) is detected. the power-down mode-selection bits are summarized in table 11.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 15 post office box 1443 ? houston, texas 772511443 low-power and idle modes (continued) table 11. low-power / idle control bits power-down control bits pwrdwn / idle (sccr2.6) halt / standby (sccr2.7) mode selected 1 0 standby 1 1 halt 0 x 2 idle 2 don't care when low-power modes are disabled through a programmable contact in the mask-rom devices, writing to the sccr2.6-7 bits is ignored. in addition, if an idle instruction is executed when low-power modes are disabled through a programmable contact, the device always enters the idle mode. to provide a method for always exiting low-power modes for mask-rom devices, int1 is enabled automatically as a nonmaskable interrupt (nmi) during low-power modes when the hard watchdog mode is selected. this means that the nmi is generated always, regardless of the interrupt enable flags. the following information is preserved throughout both the standby and halt modes: ram (register file), cpu registers (sp, pc, and st), i / o pin direction and output data, and status registers of all on-chip peripheral functions. since all cpu instruction processing is stopped during the standby and halt modes, the clocking of the wd timer is inhibited. clock modules the 'x1x family provides two clock options that are referred to as divide-by-1 (phase-locked loop) and divide-by-4 (standard oscillator). both the divide-by-1 and divide-by-4 options are configurable during the manufacturing process of a tms370 mcu. the 'x1x masked rom devices offer both options to meet system engineering requirements. only one of the two clock options is allowed on each rom device. the '712a eprom has only the divide-by-4, while the '712b has divide-by-1. the divide-by-1 clock module option provides the capability for reduced electromagnetic interference (emi) with no added cost. the divide-by-1 provides a one-to-one match of the external resonator frequency (clkin) to the internal system clock (sysclk) frequency, whereas the divide-by-4 produces a sysclk which is one-fourth the frequency of the external resonator. inside of the divide-by-1 module, the frequency of the external resonator is multiplied by four, and the clock module then divides the resulting signal by four to provide the four-phased internal system clock signals. the resulting sysclk is equal to the resonator frequency. these are formulated as follows: divide-by-4 option : sysclk  external resonator frequency 4  clkin 4 divide-by-1 option : sysclk  external resonator frequency  4 4  clkin the main advantage of choosing a divide-by-1 oscillator is the improved emi performance. the harmonics of low-speed resonators extend through fewer of the emissions spectrum than the harmonics of faster resonators. the divide-by-1 provides the capability of reducing the resonator speed by four times, and this results in a steeper decay of emissions produced by the oscillator.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 16 post office box 1443 ? houston, texas 772511443 system configuration registers table 12 contains system-configuration and control functions and registers for controlling eeprom programming. the privileged bits are shown in a bold typeface and shaded areas. table 12. peripheral file frame 1: system-configuration registers pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg p010 cold start osc power pf auto wait osc flt flag mc pin wpo mc pin data e m p/ m c mode sccr0 p011 e e e auto wait disable e memory disable e e sccr1 p012 halt / standby pwrdwn / idle e bus stest cpu stest e int1 nmi privilege disable sccr2 p013 to p016 reserved p017 int1 flag int1 pin data e e e int1 polarity int1 priority int1 enable int1 p018 int2 flag int2 pin data e int2 data dir int2 data out int2 polarity int2 priority int2 enable int2 p019 int3 flag int3 pin data e int3 data dir int3 data out int3 polarity int3 priority int3 enable int3 p01a busy e e e e ap w1w0 exe deectl p01b reserved p01c busy v pps e e e e w0 exe epctl p01d p01e p01f reserved
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 17 post office box 1443 ? houston, texas 772511443 digital port control registers peripheral file frame 2 contains the digital i/o pin configuration and control registers. table 13 shows the specific addresses, registers, and control bits within this peripheral file frame. table 14 shows the port configuration register setup. table 13. peripheral file frame 2: digital port-control registers pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg p020 reserved aport1 p021 port a control register 2 (must be 0) aport2 p022 port a data adata p023 port a direction adir p024 to p02b reserved p02c port d control register 1 (must be 0) e e e dport1 p02d port d control register 2 (must be 0) 2 e e e dport2 p02e port d data e e e ddata p02f port d direction e e e ddir 2 d3 as sysclk, set port d control register 2 = 08h. table 14. port configuration register setup port pin abcd 00q1 abcd 00y0 a 0 7 data out q data in y d 3 7 data out q data in y a = port x control register 1 b = port x control register 2 c = data d = direction
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 18 post office box 1443 ? houston, texas 772511443 programmable timer 1 the programmable timer 1 (t1) module of the tms370cx1x provides the designer with the enhanced timer resources required to perform real-time system control. the t1 module contains the general-purpose timer and the watchdog (wd) timer. the two independent 16-bit timers, t1 and wd, allow program selection of input clock sources (real-time, external event, or pulse accumulate) with multiple 16-bit registers (input capture and compare) for special timer function control. the timer 1 module includes three external device pins that can be used for multiple counter functions (operation-mode dependent), or used as general-purpose i/o pins. the t1 module block diagram is shown in figure 5. t1ic/cr edge select 16-bit counter t1evt mux mux 16-bit register t1pwm pwm toggle 16 16-bit watchdogcounter (aux. timer) interrupt logic capt/comp 16-bit register compare interrupt logic 8-bit prescaler figure 5. timer 1 block diagram  three t1 i/o pins t1ic/cr: t1 input capture / counter-reset input pin, or general-purpose bidirectional i/o pin t1pwm: t1 pulse-width-modulation (pwm) output pin, or general-purpose bidirectional i/o pin t1evt: t1 event input pin, or general-purpose bidirectional i/o pin  two operational modes: dual-compare mode: provides pwm signal capture/compare mode: provides input capture pin  one 16-bit general-purpose resettable counter  one 16-bit compare register with associated compare logic  one 16-bit capture/compare register, which, depending on the mode of operation, operates as either capture or compare registers.  one 16-bit wd counter can be used as an event counter, a pulse accumulator, or an interval timer if wd feature is not needed.  prescaler/clock sources that determine one of eight clock sources for general-purpose timer
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 19 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued)  selectable edge-detection circuitry that, depending on the mode of operation, senses active transitions on the input capture pins (t1ic/cr)  interrupts that can be generated on the occurrence of: a capture a compare equal a counter overflow an external edge detection  sixteen t1 module control registers located in the pf frame beginning at address p040 the t1 module control registers are illustrated in table 15.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 20 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued) table 15. timer 1 module register memory map pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg modes: dual-compare and capture / compare p040 bit 15 t1counter msbyte bit 8 t1cntr p041 bit 7 t1 counter lsbyte bit 0 p042 bit 15 compare register msbyte bit 8 t1c p043 bit 7 compare register lsbyte bit 0 p044 bit 15 capture/compare register msbyte bit 8 t1cc p045 bit 7 capture/compare register lsbyte bit 0 p046 bit 15 watchdog counter msbyte bit 8 wdcntr p047 bit 7 watchdog counter lsbyte bit 0 p048 bit 7 watchdog reset key bit 0 wdrst p049 wd ovrfl tap sel 2 wd input select2 2 wd input select1 2 wd input select0 2 e t1 input select2 t1 input select1 t1 input select0 t1ctl1 p04a wd ovrfl rst ena 2 wd ovrfl int ena wd ovrfl int flag t1 ovrfl int ena t1 ovrfl int flag e e t1 sw reset t1ctl2 mode: dual-compare p04b t1edge int flag t1c2 int flag t1c1 int flag e e t1edge int ena t1c2 int ena t1c1 int ena t1ctl3 p04c t1 mode=0 t1c1 out ena t1c2 out ena t1c1 rst ena t1cr out ena t1edge polarity t1cr rst ena t1edge det ena t1ctl4 mode: capture / compare p04b t1edge int flag e t1c1 int flag e e t1edge int ena e t1c1 int ena t1ctl3 p04c t1 mode = 1 t1c1 out ena e t1c1 rst ena e t1edge polarity e t1edge det ena t1ctl4 modes: dual-compare and capture / compare p04d e e e e t1evt data in t1evt data out t1evt function t1evt data dir t1pc1 p04e t1pwm data in t1pwm data out t1pwm function t1pwm data dir t1ic/cr data in t1ic/cr data out t1ic/cr function t1ic/cr data dir t1pc2 p04f t1 stest t1 priority e e e e e e t1pri 2 once the wd ovrfl rst ena bit is set, these bits cannot be changed until a reset; this applies only to the standard watchdog and to simple counter. in the hard watchdog, these bits can be modified at any time; the wd input select2 bits are ignored.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 21 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued) figure 6 shows the timer 1 capture/compare mode block diagram. the annotations on the diagram identify the register and the bit(s) in the pf. for example, the actual address of t1ctl2.0 is 104ah, bit 0, in the t1ctl2 register . t1ctl4.2 16 compare= edge select t1ic/cr t1edge polarity t1edge det ena prescale clock source 16-bit counter msb lsb t1cntr.15 0 reset t1c1 rst ena t1 sw reset t1ctl2.0 t1ctl4.4 t1pc2.3-0 t1ctl4.0 t1edge int flag t1edge int ena t1ctl3.7 t1ctl3.2 t1 ovrfl int flag t1 ovrfl int ena t1ctl2.3 t1ctl2.4 t1c1 int flag t1c1 int ena t1ctl3.5 t1ctl3.0 t1c1 out ena t1pwm t1ctl4.6 toggle t1pc2.7-4 16-bit capt/comp msb lsb register t1cc.15-0 t1c.15-0 16-bit compare msb lsb register t1 priority t1pri.6 level 1 int level 2 int 0 1 figure 6. capture/compare mode
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 22 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued) figure 7 shows the timer 1 dual-compare mode block diagram. the annotations on the diagram identify the register and the bit(s) in the peripheral frame. for example, the actual address of t1ctl2.0 is 104ah, bit 0, in the t1ctl2 register . t1ctl4.1 t1ctl4.4 prescaler clock source 16-bit counter 16-bit 16 compare= compare= reset t1c1 rst ena t1 sw reset edge select t1edge det ena output enable capt/comp register msb lsb msb lsb t1cr out ena t1ic/cr t1edge polarity toggle 16-bit compare msb lsb register t1cc.15-0 t1c1 int flag t1ctl3.0 t1ctl3.5 t1c1 int ena t1c2 int flag t1ctl3.1 t1ctl3.6 t1c2 int ena t1 ovrfl int flag t1ctl2.4 t1ctl2.3 t1 ovrfl int ena t1edge int flag t1ctl3.2 t1ctl3.7 t1edge int ena t1 priority t1c2 out ena t1c1 out ena t1ctl4.3 t1ctl4.6 t1ctl4.5 t1pwm t1pc2.7-4 t1pri.6 t1c.15-0 t1cntr.15-0 t1ctl2.0 t1cr rst ena t1pc2.3-0 t1ctl4.0 t1ctl4.2 level 1 int level 2 int 0 1 figure 7. dual-compare mode
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 23 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued) the tms370cx1x device includes a 24-bit wd timer, contained in the t1 module, which can be programmed as an event counter, pulse accumulator, or interval timer if the wd function is not used. the wd function is to monitor software and hardware operation and to implement a system reset when the wd counter is not properly serviced (wd counter overflow or wd counter is re-initialized by an incorrect value). the wd can be configured as one of three mask options as follows: standard watchdog, hard wd, or simple counter.  standard watchdog configuration (see figure 8) for 'c712a eprom and mask-rom devices: watchdog mode ten different wd overflow rates ranging from 6.55 ms to 3.35 s at 5-mhz sysclk a wd reset key (wdrst) register is used to clear the watchdog counter (wdcntr) when a correct value is written. generates a system reset if an incorrect value is written to the wd reset key or if the counter overflows a wd overflow flag (wd ovrfl int flag) bit that indicates whether the wd timer initiated a system reset non-watchdog mode watchdog timer can be configured as an event counter, pulse accumulator or an interval timer 16-bit watchdog counter reset prescaler clock watchdog reset key wd ovrfl tap sel wd ovrfl rst ena system reset t1ctl1.7 wdrst.7-0 wdcntr.15-0 t1ctl2.7 t1ctl2.5 wd ovrfl int ena interrupt t1ctl2.6 wd ovrfl int flag figure 8. standard watchdog
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 24 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued)  hard watchdog configuration (see figure 9) for 'c712b eprom and mask-rom devices: eight different wd overflow rates ranging from 26.2 ms to 3.35 s at 5-mhz sysclk a wd reset key (wdrst) register is used to clear the watchdog counter (wdcntr) when a correct value is written. generates a system reset if an incorrect value is written to the wdrst or if the counter overflows a wd overflow flag (wd ovrfl int flag) bit that indicates whether the wd timer initiated a system reset automatic activation of the wd timer upon power-up reset int1 is enabled as a nonmaskable interrupt during low power modes. 16-bit watchdog counter reset prescaler clock watchdog reset key wd ovrfl tap sel system reset t1ctl1.7 wdrst.7-0 wdcntr.15-0 t1ctl2.5 wd ovrfl int flag figure 9. hard watchdog
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 25 post office box 1443 ? houston, texas 772511443 programmable timer 1 (continued)  simple counter configuration (see figure 10) for mask-rom devices only simple counter can be configured as an event counter, pulse accumulator, or an internal timer. 16-bit watchdog counter reset prescaler clock watchdog reset key wd ovrfl tap sel t1ctl1.7 wdrst.7-0 wdcntr.15-0 t1ctl2.5 wd ovfl int flag wd ovrfl int ena interrupt t1ctl2.6 figure 10. simple counter serial peripheral interface the spi is a high-speed synchronous serial i/o port that allows a serial bit stream of programmed length (one to eight bits) to be shifted into and out of the device at a programmable bit transfer rate. the spi normally is used for communications between the microcontroller and external peripherals or another microcontroller. typical applications include external i/o or peripheral expansion by way of devices such as shift registers, display drivers, and a/d converters. multi-device communications are supported by the master/slave operation of the spi. the spi module features include the following:  three external pins spisomi: spi slave output/master input pin or general-purpose bidirectional i/o pin spisimo: spi slave input/master output pin or general-purpose bidirectional i/o pin spiclk: spi serial clock pin or general-purpose bidirectional i/o pin  two operational modes: master and slave  baud rate: eight different programmable rates maximum baud rate in master mode: 2.5m bps at 5-mhz sysclk spi baud rate  sysclk 2  2 b where b=bit rate in spiccr.5-3 (range 07) maximum baud rate in slave mode: 625k bps at 5-mhz sysclk for maximum slave spi baud rate < sysclk / 8  data word format: one to eight data bits  simultaneous receiver and transmitter operations (transmit function can be disabled in software)
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 26 post office box 1443 ? houston, texas 772511443 serial peripheral interface (continued)  transmitter and receiver operations are accomplished through either interrupt-driven or polled algorithms.  seven spi module control registers located in control register frame beginning at address p030h the spi module-control registers are illustrated in table 16. table 16. spi module-control register memory map pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg p030 spi sw reset clock polarity spi bit rate2 spi bit rate1 spi bit rate0 spi char2 spi char1 spi char0 spiccr p031 receiver overrun spi int flag e e e master/ slave talk spi int ena spictl p032 to p036 reserved p037 rcvd7 rcvd6 rcvd5 rcvd4 rcvd3 rcvd2 rcvd1 rcvd0 spibuf p038 reserved p039 sdat7 sdat6 sdat5 sdat4 sdat3 sdat2 sdat1 sdat0 spidat p03a to p03c reserved p03d e e e e spiclk data in spiclk data out spiclk function spiclk data dir spipc1 p03e spisimo data in spisimo data out spisimo function spisimo data dir spisomi data in spisomi data out spisomi function spisomi data dir spipc2 p03f spi stest spi priority spi espen e e e e e spipri
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 27 post office box 1443 ? houston, texas 772511443 serial peripheral interface (continued) the spi block diagram is illustrated in figure 11. spibuf buffer register spidat data register spibuf.7-0 state control spi char spi bit rate clock polarity spi int flag spictl.6 spiint ena spictl.0 receiver overrun 8 spidat.7-0 spictl.1 talk 20 1 3 4 5 spiccr.2-0 spiccr.5-3 system clock spiccr.6 spiclk master/slave 2 spictl.7 level 2 int spipri.6 1 spipc2.7-4 spisimo spictl.2 spipc1.3-0 spisomi spipc2.3-0 level 1 int 0 2 the diagram is shown in the slave mode. figure 11. spi block diagram instruction set overview table 17 provides an opcode to instruction cross reference of all 73 instructions and 274 opcodes of the `370cx1x instruction set. the numbers at the top of this table represent the most significant nibble of the opcode while the numbers at the left side of the table represent the least significant nibble (lbn). the instruction of these two opcode nibbles contains the mnemonic, operands, and byte / cycle particular to that opcode. for example, the opcode b5h points to the clr a instruction. this instruction contains one byte and executes in eight sysclk cycles.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 t emp l ate r e l ease d ate: 7 11 94 28 post office box 1443 houston, texas 772511443 ? table 17. tms370 family opcode/instruction map 2 msn 01234567 8 9 a b c d e f 0 jmp ra 2/7 incw #n,rd 3/11 mov ps,a 2/8 clrc / tst a 1/9 mov a,b 1/9 mov a,rd 2/7 trap 15 1/14 ldst n 2/6 1 jn ra 2/5 mov a,pd 2/8 mov b,pd 2/8 mov rs,pd 3/10 mov ps,b 2/7 mov b,rd 2/7 trap 14 1/14 mov *n[sp],a 2/7 2 jz ra 2/5 mov rs,a 2/7 mov #n,a 2/6 mov rs,b 2/7 mov rs,rd 3/9 mov #n,b 2/6 mov b,a 1/8 mov #n,rd 3/8 mov ps,rd 3/10 dec a 1/8 dec b 1/8 dec rn 2/6 trap 13 1/14 mov a,*n[sp] 2/7 3 jc ra 2/5 and rs,a 2/7 and #n,a 2/6 and rs,b 2/7 and rs,rd 3/9 and #n,b 2/6 and b,a 1/8 and #n,rd 3/8 and a,pd 2/9 and b,pd 2/9 and #n,pd 3/10 inc a 1/8 inc b 1/8 inc rn 2/6 trap 12 1/14 cmp *n[sp],a 2/8 4 jp ra 2/5 or rs,a 2/7 or #n,a 2/6 or rs,b 2/7 or rs,rd 3/9 or #n,b 2/6 or b,a 1/8 or #n,rd 3/8 or a,pd 2/9 or b,pd 2/9 or #n,pd 3/10 inv a 1/8 inv b 1/8 inv rn 2/6 trap 11 1/14 extend inst,2 opcodes l s 5 jpz ra 2/5 xor rs,a 2/7 xor #n,a 2/6 xor rs,b 2/7 xor rs,rd 3/9 xor #n,b 2/6 xor b,a 1/8 xor #n,rd 3/8 xor a,pd 2/9 xor b,pd 2/9 xor #n,pd 3/10 clr a 1/8 clr b 1/8 clr rn 2/6 trap 10 1/14 n 6 jnz ra 2/5 btjo rs,a,ra 3/9 btjo #n,a,ra 3/8 btjo rs,b,ra 3/9 btjo rs,rd,ra 4/11 btjo #n,b,ra 3/8 btjo b,a,ra 2/10 btjo #n,rd,ra 4/10 btjo a,pd,ra 3/11 btjo b,pd,ra 3/10 btjo #n,pd,ra 4/11 xchb a 1/10 xchb a / tst b 1/10 xchb rn 2/8 trap 9 1/14 idle 1/6 7 jnc ra 2/5 btjz rs.,a,ra 3/9 btjz #n,a,ra 3/8 btjz rs,b,ra 3/9 btjz rs,rd,ra 4/11 btjz #n,b,ra 3/8 btjz b,a,ra 2/10 btjz #n,rd,ra 4/10 btjz a,pd,ra 3/10 btjz b,pd,ra 3/10 btjz #n,pd,ra 4/11 swap a 1/11 swap b 1/11 swap rn 2/9 trap 8 1/14 mov #n,pd 3/10 8 jv ra 2/5 add rs,a 2/7 add #n,a 2/6 add rs,b 2/7 add rs,rd 3/9 add #n,b 2/6 add b,a 1/8 add #n,rd 3/8 movw #16,rd 4/13 movw rs,rd 3/12 movw #16[b],rd 4/15 push a 1/9 push b 1/9 push rs 2/7 trap 7 1/14 setc 1/7 9 jl ra 2/5 adc rs,a 2/7 adc #n,a 2/6 adc rs,b 2/7 adc rs,rd 3/9 adc #n,b 2/6 adc b,a 1/8 adc #n,rd 3/8 jmpl lab 3/9 jmpl *rd 2/8 jmpl *lab[b] 3/11 pop a 1/9 pop b 1/9 pop rd 2/7 trap 6 1/14 rts 1/9 a jle ra 2/5 sub rs,a 2/7 sub #n,a 2/6 sub rs,b 2/7 sub rs,rd 3/9 sub #n,b 2/6 sub b,a 1/8 sub #n,rd 3/8 mov & lab,a 3/10 mov *rs,a 2/9 mov *lab[b],a 3/12 djnz a,ra 2/10 djnz b,ra 2/10 djnz rn,ra 3/8 trap 5 1/14 rti 1/12 b jhs ra 2/5 sbb rs,a 2/7 sbb #n,a 2/6 sbb rs,b 2/7 sbb rs,rd 3/9 sbb #n,b 2/6 sbb b,a 1/8 sbb #n,rd 3/8 mov a, & lab 3/10 mov a, *rd 2/9 mov a,*lab[b] 3/12 compl a 1/8 compl b 1/8 compl rn 2/6 trap 4 1/14 push st 1/8 2 all conditional jumps (opcodes 01 0f), btjo, btjz, and djnz instructions use two additional cycles if the branch is taken. the btjo, btjz, and djnz instructions have a relative address as the last operand.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 post office box 1443 houston, texas 772511443 ? 29 table 17. tms370 family opcode/instruction map 2 (continued) msn 01 2 3 4 5 6 7 8 9 a b c d e f c jnv ra 2/5 mpy rs,a 2/46 mpy #n,a 2/45 mpy rs,b 2/46 mpy rs,rd 3/48 mpy #n,b 2/45 mpy b,a 1/47 mpy #n,rs 3/47 br lab 3/9 br *rd 2/8 br *lab[b] 3/11 rr a 1/8 rr b 1/8 rr rn 2/6 trap 3 1/14 pop st 1/8 l s d jge ra 2/5 cmp rs,a 2/7 cmp #n,a 2/6 cmp rs,b 2/7 cmp rs,rd 3/9 cmp #n,b 2/6 cmp b,a 1/8 cmp #n,rd 3/8 cmp & lab,a 3/11 cmp *rs,a 2/10 cmp *lab[b],a 3/13 rrc a 1/8 rrc b 1/8 rrc rn 2/6 trap 2 1/14 ldsp 1/7 s n e jg ra 2/5 dac rs,a 2/9 dac #n,a 2/8 dac rs,b 2/9 dac rs,rd 3/11 dac #n,b 2/8 dac b,a 1/10 dac #n,rd 3/10 call lab 3/13 call *rd 2/12 call *lab[b] 3/15 rl a 1/8 rl b 1/8 rl rn 2/6 trap 1 1/14 stsp 1/8 f jlo ra 2/5 dsb rs,a 2/9 dsb #n,a 2/8 dsb rs,b 2/9 dsb rs,rd 3/11 dsb #n,b 2/8 dsb b,a 1/10 dsb #n,rd 3/10 callr lab 3/15 callr *rd 2/14 callr *lab[b] 3/17 rlc a 1/8 rlc b 1/8 rlc rn 2/6 trap 0 1/14 nop 1/7 second byte of two-byte instructions (f4xx): f4 8 movw *n[rn] 4/15 div rn.a 3/14-63 f4 9 jmpl *n[rn] 4/16 legend: * = indirect addressing operand prefix & = direct addressin g operand prefix f4 a mov *n[rn],a 4/17 & direct addressing o erand refix # = immediate operand #16 = immediate 16-bit number lab = 16-label f4 b mov a,*n[rn] 4/16 n = immediate 8-bit number pd = peripheral register containing destination type pn = peripheral register f4 c br *n[rn] 4/16 ps = peripheral register containing source byte ra = relative address rd = register containing destination type r r i fil f4 d cmp *n[rn],a 4/18 rn = register file rp = register pair rpd = destination register pair rps source register pair f4 e call *n[rn] 4/20 r ps = s ource r eg i ster pa i r rs = register containing source byte f4 f callr *n[rn] 4/22 2 all conditional jumps (opcodes 01 0f), btjo, btjz, and djnz instructions use two additional cycles if the branch is taken. the btjo, btjz, and djnz instructions have a relative address as the last operand.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 30 post office box 1443 ? houston, texas 772511443 development system support the tms370 family development support tools include an assembler, a c-compiler, a linker, an in-circuit emulator xds/22, cdt and an eeprom / uveprom programmer.  assembler/ linker (part no. tmds374085002 for pc) includes extensive macro capability provides high-speed operation includes format conversion utilities for popular formats  ansi c compiler (part no. tmds374085502 for pc, part no. tmds374055509 for hp700 ? , sun-3 ? or sun-4 ? ) generate assembly code for the tms370 that can be inspected easily improves code execution speed and reduces code size with optional optimizer pass enables direct reference the tms370's port registers by using a naming convention provides flexibility in specifying the storage for data objects interfaces c functions and assembly functions easily includes assembler and linker  cdt370 (compact development tool) real-time in-circuit emulation base (part number edscdt370 for pc, requires cable) cable for 28-pin dip (part no. edstrg28dil) cable for 28-pin plcc (part no. edstrg28plcc) eeprom and eprom programming support allows inspection and modification of memory locations includes compatibility to upload / download program and data memory execute programs and software routines includes 1 024 samples trace buffer includes single-step executable instructions uses software breakpoints to halt program execution at selected address  xds/ 22 in-circuit emulator base (part number tmds3762210 for pc, requires cable) cable for 28-pin dip / plcc (part no. tmds3788828) contains all the features of the cdt370 described previously but does not have the capability to program the data eeprom and program eprom contains sophisticated breakpoint trace and timing hardware that provides up to 2 047 qualified trace samples with symbolic disassembly allows qualification of breakpoints by address and / or data on any type of memory acquisition. up to four levels of events can be combined to cause a breakpoint hp700 is a trademark of hewlett-packard company. sun-3 and sun-4 are trademarks of sun microsystems, incorporated.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 31 post office box 1443 ? houston, texas 772511443 development system support (continued) provides timers for analyzing total and average time in routines contains an eight-line logic probe for adding visibility of external signals to the breakpoint qualifier and to trace display  microcontroller programmer base (part no. tmds3760500a for pc, requires programmer head) single unit head for 28-pin plcc (part no. tmds3780510a) single unit head for 28-pin dip (part no. tmds3780511a) pc-based, window / function-key-oriented user interface for ease of use and rapid learning environment  design kit (part no. tmds3770110 for pc) includes tms370 application board and tms370 assembler diskette and documentation supports quick evaluation of tms370 functionality capability to upload and download code capability to execute programs and software routines, and to single-step executable instructions software breakpoints to halt program execution at selected addresses wire-wrap prototype area reverse assembler  starter kit (part no. tmds37000 for pc) includes tms370 assembler diskette and documentation includes tms370 simulator includes programming adapter board and programming software does not include (to be supplied by the user) + 5 v power supply zif sockets nine-pin rs232 cable
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 32 post office box 1443 ? houston, texas 772511443 device numbering conventions figure 12 illustrates the numbering and symbol nomenclature for the tms370cx1x family. 7 370 1 2 c prefix: tms = standard prefix for fully qualified devices se = system evaluator (window eprom) that is used for prototyping purpose. family: 370 = tms370 8-bit microcontroller family technology: c = cmos program memory types: 0 = mask rom 3 = mask rom, no data eeprom 7 = eprom device type: 1 = 'x1x device containing the following modules: timer 1 serial peripheral interface memory size: 0 = 4k bytes 1 = 2k bytes 2 = 8k bytes temperature ranges: a = 40 c to 85 c l = 0 c to 70 c t = 40 c to 105 c packages: fn = plastic leaded chip carrier fz = ceramic leaded chip carrier n = plastic dual-in-line jd = ceramic dual-in-line rom and eprom option: a = for rom device, the watchdog timer can be configured as one of the three different mask options: a standard watchdog a hard watchdog a simple watchdog the clock can be either: divide-by-4 clock divide-by-1 (pll) clock the low-power modes can be either: enabled disabled a = for eprom device, a standard watchdog, a divide-by- 4 clock, and low-power modes are enabled b = for eprom device, a hard watchdog, a divide-by-1 (pll) clock, and low-power modes are enabled. tms afnl figure 12. tms370cx1x family nomenclature
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 33 post office box 1443 ? houston, texas 772511443 device part numbers table 18 provides all of the 'x1x devices available. the device part number nomenclature is designed to assist ordering. upon ordering, the customer must specify not only the device part number, but also the clock and watchdog timer options desired. each device can have only one of the three possible watchdog timer options and one of the two clock options. the options to be specified pertain solely to orders involving rom devices. table 18. device part numbers devices part numbers for 28 pins (lcc) devices part numbers for 28 pins (dip) tms370c010afna tms370c010afnl tms370c010afnt tms370c010ana tms370c010anl tms370c010ant tms370c012afna tms370c012afnl tms370c012afnt tms370c012ana tms370c012anl tms370c012ant tms370c310afna tms370c310afnl tms370c310afnt tms370c310ana tms370c310anl tms370c310ant tms370c311afna tms370c311afnl tms370c311afnt tms370c311ana tms370c311anl tms370c311ant tms370c312afna tms370c312afnl tms370c312afnt tms370c312ana tms370c312anl tms370c312ant tms370c712afnt tms370c712bfnt tms370c712ant tms370c712bnt se370c712afzt 2 se370c712bfzt 2 se370c712ajdt 2 se370c712bjdt 2 2 system evaluators are for use in prototype environment and their reliability has not been characterized.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 34 post office box 1443 ? houston, texas 772511443 new code release form figure 13 shows a sample of the new code release form. new code release form texas instruments tms370 microcontroller products date: to release a new customer algorithm to ti incorporated into a tms370 family microcontroller, complete this form and submit with the following information: 1. a rom description in object form on floppy disk, modem xfr, or eprom (verification file will be returned via same media) 2. an attached specification if not using ti standard specification as incorporated in ti's applicable device data book. company name: street address: street address: city: state zip contact mr./ms.: phone: ( ) ext.: customer purchase order number: customer part number: customer application: customer print number *yes: # no: (std. spec to be followed) *if yes: customer must provide oprinto to ti w/ncrf for approval before rom code processing starts. tms370 device: ti customer rom number: (provided by texas instruments) contact options for the 'a' version tms370 microcontrollers oscillator frequency min typ max [] external drive (clkin) [] crystal [] ceramic resonator low power modes [] enabled [] disabled watchdog counter [] standard [] hard enabled [] simple counter clock type [] standard (/4) [] pll (/1) [] supply voltage min: max: (std range: 4.5v to 5.5v) note: non 'a' version rom devices of the tms370 microcontrollers will have the alow-power modes enabledo, adivide-by-4o clock, and astandardo watchdog options. see the tms370 family user's guide (literature number spnu127) or the tms370 family data manual (literature number spns014b). temperature range [] 'l': 0 to 70 c (standard) [] 'a': 40 to 85 c [] 't': 40 to 105 c package type [] 'n' 28-pin pdip [] afno 44-pin plcc [] afno 28-pin plcc [] afno 68-pin plcc [] ano 40-pin pdip [] anmo 64-pin psdip [] anjo 40-pin psdip (formerly known as n2) symbolization bus expansion [] ti standard symbolization [] ti standard w/customer part number [] customer symbolization (per attached spec, subject to approval) [] yes [] no non-standard specifications: all non-standards specifications must be approved by the ti engineering staff: if the customer requires expedited production ma terial (i.e., product which must be started in process prior to prototype approval and full production release) and non-standard spec issues are not resolved to the satisfaction of both the customer and ti in time for a scheduled shipment, the specification parameters in question will be pro cessed/tested to the standard ti spec. any such devices which are shipped without conformance to a mutually approved spec, will be identified by a 'p' in the symbolization preceding the ti part number. release authorization: this document, including any referenced attachments, is and will be the controlling document for all orders placed for this ti custom device. any changes must be in writing and mutually agreed to by both the customer and ti. the prototype cycletime commences when this document is signe d off and the verification code is approved by the customer. 1. customer: date: 2. ti: field sales: marketing: prod. eng.: proto. release: figure 13. sample new code release form
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 35 post office box 1443 ? houston, texas 772511443 table 19 is a collection of all the peripheral file frames used in the 'cx1x (provided for a quick reference). table 19. peripheral file frame compilation pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg system configuration registers p010 cold start osc power pf auto wait osc flt flag mc pin wpo mc pin data e m p/ m c mode sccr0 p011 e e e auto wait disable e memory disable e e sccr1 p012 halt / standby pwrdwn / idle e bus stest cpu stest e int1 nmi privilege disable sccr2 p013 to p016 reserved p017 int1 flag int1 pin data e e e int1 polarity int1 priority int1 enable int1 p018 int2 flag int2 pin data e int2 data dir int2 data out int2 polarity int2 priority int2 enable int2 p019 int3 flag int3 pin data e int3 data dir int3 data out int3 polarity int3 priority int3 enable int3 p01a busy e e e e ap w1w0 exe deectl p01b reserved p01c busy vpps e e e e w0 exe epctl p01d p01e p01f reserved digital port control registers p020 reserved aport1 p021 port a control register 2 (must be 0) aport2 p022 port a data adata p023 port a direction adir p024 to p02b reserved p02c port d control register 1 (must be 0) e e e dport1 p02d port d control register 2 (must be 0) 2 e e e dport2 p02e port d data e e e ddata p02f port d direction e e e ddir spi module control register memory map p030 spi sw reset clock polarity spi bit rate2 spi bit rate1 spi bit rate0 spi char2 spi char1 spi char0 spiccr p031 receiver overrun spi int flag e e e master/ slave talk spi int ena spictl p032 to p036 reserved p037 rcvd7 rcvd6 rcvd5 rcvd4 rcvd3 rcvd2 rcvd1 rcvd0 spibuf p038 reserved 2 d3 as sysclk, set port d control register 2 = 08h.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 36 post office box 1443 ? houston, texas 772511443 table 19. peripheral file frame compilation (continued) pf bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reg p039 sdat7 sdat6 sdat5 sdat4 sdat3 sdat2 sdat1 sdat0 spidat p03a to p03c reserved p03d e e e e spiclk data in spiclk data out spiclk function spiclk data dir spipc1 p03e spisimo data in spisimo data out spisimo function spisimo data dir spisomi data in spisomi data out spisomi function spisomi data dir spipc2 p03f spi stest spi riority spi espen e e e e e spipri timer1 module register memory map modes: dual-compare and capture / compare p040 bit 15 t1counter msbyte bit 8 t1cntr p041 bit 7 t1 counter lsbyte bit 0 p042 bit 15 compare register msbyte bit 8 t1c p043 bit 7 compare register lsbyte bit 0 p044 bit 15 capture/compare register msbyte bit 8 t1cc p045 bit 7 capture/compare register lsbyte bit 0 p046 bit 15 watchdog counter msbyte bit 8 wdcntr p047 bit 7 watchdog counter lsbyte bit 0 p048 bit 7 watchdog reset key bit 0 wdrst p049 wd ovrfl tap sel 2 wd input select2 2 wd input select1 2 wd input select0 2 e t1 input select2 t1 input select1 t1 input select0 t1ctl1 p04a wd ovrfl rst ena 2 wd ovrfl int ena wd ovrfl int flag t1 ovrfl int ena t1 ovrfl int flag e e t1 sw reset t1ctl2 mode: dual-compare p04b t1edge int flag t1c2 int flag t1c1 int flag e e t1edge int ena t1c2 int ena t1c1 int ena t1ctl3 p04c t1 mode=0 t1c1 out ena t1c2 out ena t1c1 rst ena t1cr out ena t1edge polarity t1cr rst ena t1edge det ena t1ctl4 mode: capture / compare p04b t1edge int flag e t1c1 int flag e e t1edge int ena e t1c1 int ena t1ctl3 p04c t1 mode = 1 t1c1 out ena e t1c1 rst ena e t1edge polarity e t1edge det ena t1ctl4 modes: dual-compare and capture / compare p04d e e e e t1evt data in t1evt data out t1evt function t1evt data dir t1pc1 p04e t1pwm data in t1pwm data out t1pwm function t1pwm data dir t1ic/cr data in t1ic/cr data out t1ic/cr function t1ic/cr data dir t1pc2 p04f t1 stest t1 priority e e e e e e t1pri 2 once the wd ovrfl rst ena bit is set, these bits cannot be changed until a reset; this applies only to the standard watchdog and to simple counter. in the hard watchdog, these bits can be modified at any time; the wd input select2 bits are ignored.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 37 post office box 1443 ? houston, texas 772511443 absolute maximum ratings over operating free-air temperature range (unless otherwise noted) 2 supply voltage range,v cc (see note 1) 0.6 v to 7 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . input voltage range, all pins except mc 0.6 v to 7 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . mc 0.6 v to 14 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . input clamp current, i ik (v i < 0 or v i > v cc) 20 ma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . output clamp current, i ok (v o < 0 or v o > v cc ) 20 ma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . continuous output current per buffer, i o (v o = 0 to v cc) ) (see note 2) 10 ma . . . . . . . . . . . . . . . . . . . . . . . . . maximum i cc current 170 ma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . maximum i ss current 170 ma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . continuous power dissipation 500 mw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . operating free-air temperature range, t a : l version 0 c to 70 c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . a version 40 c to 85 c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . t version 40 c to 105 c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . storage temperature range, t stg 65 c to 150 c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 stresses beyond those listed under aabsolute maximum ratingso may cause permanent damage to the device. these are stress rating s only, and functional operation of the device at these or any other conditions beyond those indicated under arecommended operating conditi onso is not implied. exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. notes: 1. unless otherwise noted, all voltage values are with respect to v ss . 2. electrical characteristics are specified with all output buffers loaded with specified i o current. exceeding the specified i o current in any buffer can affect the levels on other buffers. recommended operating conditions min nom max unit v cc supply voltage (see note 1) 4.5 5 5.5 v v cc ram data-retention supply voltage (see note 3) 3 5.5 v v il low level in p ut voltage all pins except mc v ss 0.8 v v il lo w- le v el inp u t v oltage mc, normal operation v ss 0.3 v v hi h l l i t lt all pins except mc, xtal2 / clkin, and reset 2 v cc v v ih high-level input voltage xtal2 / clkin 0.8 v cc v cc v reset 0.7 v cc v cc eeprom write protect override (wpo) 11.7 12 13 v mc mc (mode control) voltage eprom programming voltage (v pp ) 13 13.2 13.5 v microcomputer v ss 0.3 l version 0 70 t a operating free-air temperature a version 40 85 c t version 40 105 notes: 1. unless otherwise noted, all voltage values are with respect to v ss . 3. reset must be externally activated when v cc or sysclk is not within the recommended operating range.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 38 post office box 1443 ? houston, texas 772511443 electrical characteristics over recommended operating free-air temperature range (unless otherwise noted) parameter test conditions min typ max unit v ol low-level output voltage i ol = 1.4 ma 0.4 v v oh high level out p ut voltage i oh = 50 m a 0.9 v cc v v oh high - le v el o u tp u t v oltage i oh = 2 ma 2.4 v 0 v v i 0.3 v 10 m a mc 0.3 v < v i 13 v 650 m a i i input current mc see note 4 12 v v i 13 v 50 ma i / o pins 0 v v i v cc 10 m a i ol low-level output current v ol = 0.4 v 1.4 ma i oh high level out p ut current v oh = 0.9 v cc 50 m a i oh high - le v el o u tp u t c u rrent v oh = 2.4 v 2 ma see notes 5 and 6 sysclk = 5 mhz 20 36 supply current (operating mode) osc power bit = 0 (see note 7) see notes 5 and 6 sysclk = 3 mhz 13 25 ma see notes 5 and 6 sysclk = 0.5 mhz 5 11 see notes 5 and 6 sysclk = 5 mhz 10 17 i cc supply current (standby mode) osc power bit = 0 (see note 8) see notes 5 and 6 sysclk = 3 mhz 6.5 11 ma see notes 5 and 6 sysclk = 0.5 mhz 2 3.5 supply current (standby mode) see notes 5 and 6 sysclk = 3 mhz 4.5 8.6 ma y( ) osc power bit = 1 (see note 9) see notes 5 and 6 sysclk = 0.5 mhz 1.5 3.0 ma supply current (halt mode) see note 5 xtal2 / clkin < 0.2 v 1 30 m a notes: 4. input current i pp is a maximum of 50 ma only when you are programming eprom. 5. single chip mode, ports configured as inputs or outputs with no load. all inputs 0.2 v or v cc 0.2v. 6. xtal2/clkin is driven with an external square wave signal with 50% duty cycle and rise and fall times less than 10 ns. curren t can be higher with a crystal oscillator. at 5 mhz sysclk, this extra current = 0.01 ma x (total load capacitance + crystal capa citance in pf). 7. maximum operating current = 5.6 (sysclk) + 8 ma. 8. maximum standby current = 3 (sysclk) + 2 ma. (osc power bit = 0). 9. maximum standby current = 2.24 (sysclk) + 1.9 ma. (osc power bit = 1, only valid up to 3 mhz sysclk).
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 39 post office box 1443 ? houston, texas 772511443 external clock signal xtal1 xtal2/clkin c2 (see note b) c1 (see note b) crystal/ceramic resonator (see note a) xtal1 xtal2/clkin c3 (see note b) notes: a. the crystal/ceramic resonator frequency is four times the reciprocal of the system clock period. b. the values of c1 and c2 are typically 15 pf and the value of c3 is typically 50 pf. see the manufacturer's recommendations fo r ceramic resonators. figure 14. recommended crystal/clock connections 1.2 k w 20 pf v o load voltage case 1: v o = v oh = 2.4 v; load voltage = 0 v case 2: v o = v ol = 0.4 v; load voltage = 2.1 v note a: all measurements are made with the pin loading as shown unless otherwise noted. all measurements are made with xtal2/clk in driven by an external square wave signal with a 50% duty cycle and rise and fall times less than 10 ns unless otherwise stated. figure 15. typical output load circuit (see note a) v cc gnd 300 w 20 w i/o pin data output enable v cc gnd int1 6 k w 20 w 30 w figure 16. typical buffer circuitry
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 40 post office box 1443 ? houston, texas 772511443 parameter measurement information timing parameter symbology timing parameter symbols have been created in accordance with jedec standard 100. in order to shorten the symbols, some of the pin names and other related terminology have been abbreviated as follows: ar array sc sysclk b byte simo spisimo ci xtal2/clkin somi spisomi m master mode spc spiclk s slave mode lowercase subscripts and their meanings are: c cycle time (period) su setup time d delay time v valid time f fall time w pulse duration (width) r rise time the following additional letters are used with these meanings: h high l low v valid all timings are measured between high and low measurement points as indicated in figure 17 and figure 18. 0.8 v (low) 2 v (high) 0.8 v (low) 0.8 v cc v (high) figure 17. xtal2/clkin measurement points figure 18. general measurement points
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 41 post office box 1443 ? houston, texas 772511443 external clocking requirements for clock divided by 4 (see note 10 and figure 19) no. parameter min max unit 1 t w(cl) pulse duration, xtal2/clkin (see note 11) 20 ns 2 t r(cl) rise time, xtal2/clkin 30 ns 3 t f(ci) fall time, xtal2/clkin 30 ns 4 t d(cih-scl) delay time, xtal2/clkin rise to sysclk fall 100 ns clkin crystal operating frequency 2 20 mhz sysclk internal system clock operating frequency 2 0.5 5 mhz 2 sysclk = clkin/4 notes: 10. for v il and v ih , refer to recommended operating conditions. 11. this pulse may be either a high pulse which extends from the earliest valid high to the final valid high in an xtal2/clkin c ycle or a low pulse, which extends from the earliest valid low to the final valid low in an xtal2/clkin cycle. xtal2/clkin 3 2 1 4 sysclk figure 19. external clock timing for divide-by-4 external clocking requirements for clock divided by 1 (pll) (see note 10 and figure 20) no. parameter min max unit 1 t w(cl) pulse duration, xtal2/clkin (see note 11) 20 ns 2 t r(cl) rise time, xtal2/clkin 30 ns 3 t f(ci) fall time, xtal2/clkin 30 ns 4 t d(cih-sch) delay time, xtal2/clkin rise to sysclk rise 100 ns clkin crystal operating frequency 2 5 mhz sysclk internal system clock operating frequency 3 2 5 mhz 3 sysclk = clkin/1 notes: 10. for v il and v ih , refer to recommended operating conditions. 11. this pulse can be either a high pulse which extends from the earliest valid high to the final valid high in an xtal2/clkin c ycle or a low pulse, which extends from the earliest valid low to the final valid low in an xtal2/clkin cycle. 4 3 2 1 xtal2/clkin sysclk figure 20. external clock timing for divide-by-1
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 42 post office box 1443 ? houston, texas 772511443 switching characteristics and timing requirements (see note 12 and figure 21) no. parameter min max unit 5 t cycle time sysclk divide by 4 200 2000 ns 5 t c c y cle time , sysclk divide by 1 200 500 ns 6 t w(scl) pulse duration, sysclk low 0.5 t c 20 0.5 t c ns 7 t w(sch) pulse duration, sysclk high 0.5 t c 0.5 t c + 20 ns note 12: t c = system-clock cycle time = 1 / sysclk sysclk 5 6 7 figure 21. sysclk timing general purpose output signal switching time requirements (see figure 22) min nom max unit t r rise time 30 ns t f fall time 30 ns t f t r figure 22. signal switching timing recommended eeprom timing requirements for programming min max unit t w(pgm)b pulse duration, programming signal to ensure valid data is stored (byte mode) 10 ms t w(pgm)ar pulse duration, programming signal to ensure valid data is stored (array mode) 20 ms recommended eprom operating conditions for programming min nom max unit v cc supply voltage 4.75 5.5 6 v v pp supply voltage at mc pin 13 13.2 13.5 v i pp supply current at mc pin during programming (v pp = 13 v) 30 50 ma sysclk system clock divide by 4 0.5 5 mhz sysclk s y stem clock divide by 1 2 5 mh z recommended eprom timing requirements for programming min nom max unit t w(epgm) pulse duration, programming signal (see note 13) 0.40 0.50 3 ms note 13: programming pulse is active when both exe (epctl.0) and v pps (epctl.6) are set.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 43 post office box 1443 ? houston, texas 772511443 spi master mode external timing characteristics and requirements (see note 12 and figure 23) no. min max unit 38 t c(spc)m cycle time, spiclk 2t c 256t c ns 39 t w(spcl)m pulse duration, spiclk low t c 45 0.5t c(spc) +45 ns 40 t w(spch)m pulse duration, spiclk high t c 55 0.5t c(spc) +45 ns 41 t d(spcl-simov)m delay time, spisimo valid after spiclk low (polarity = 1) 65 50 ns 42 t v(spch-simo)m valid time, spisimo data valid after spiclk high (polarity =1) t w(spch) 50 ns 43 t su(somi-spch)m setup time, spisomi to spiclk high (polarity = 1) 0.25 t c + 150 ns 44 t v(spch-somi)m valid time, spisomi data valid after spiclk high (polarity = 1) 0 ns note 12 : t c = system-clock cycle time = 1 / sysclk data valid data valid spisomi spisimo spiclk 44 43 42 41 38 40 39 note a: the diagram is for polarity = 1. spiclk is inverted when polarity = 0. figure 23. spi master external timing
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 44 post office box 1443 ? houston, texas 772511443 spi slave mode external timing characteristics and requirements (see note 12 and figure 24) no. min max unit 45 t c(spc)s cycle time, spiclk 8t c ns 46 t w(spcl)s pulse duration, spiclk low 4t c 45 0.5t c(spc)s +45 ns 47 t w(spch)s pulse duration, spiclk high 4t c 45 0.5t c(spc)s +45 ns 48 t d(spcl-somiv)s delay time, spisomi valid after spiclk low (polarity = 1) 3.25t c + 130 ns 49 t v(spch-somi)s valid time, spisomi data valid after spiclk high (polarity =1) t w(spch)s ns 50 t su(simo-spch)s setup time, spisimo to spiclk high (polarity = 1) 0 ns 51 t v(spch-simo)s valid time, spisimo data after spiclk high (polarity = 1) 3t c + 100 ns note 12 : t c = system-clock cycle time = 1 / sysclk data valid data valid spisomi spisimo spiclk 51 50 49 48 45 47 46 note a: the diagram is for polarity = 1. spiclk is inverted when polarity = 0. figure 24. spi slave external timing
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 45 post office box 1443 ? houston, texas 772511443 table 20 is designed to aid the user in referencing a device part number to a mechanical drawing. the table shows a cross-reference of the device part number to the tms370 generic package name and the associated mechanical drawing by drawing number and name. table 20. tms370cx1x family package type and mechanical cross-reference pkg type (mil pin spacing) tms370 generic name pkg type no. and mechanical name device part numbers fn 28 pin (50-mil pin spacing) plastic leaded chip carrier (plcc) fn(s-pqcc-j**) plastic j-leaded chip carrier tms370c010afna tms370c010afnl tms370c010afnt tms370c012afna tms370c012afnl tms370c012afnt tms370c310afna tms370c310afnl tms370c310afnt tms370c311afna tms370c311afnl tms370c311afnt tms370c312afna tms370c312afnl tms370c312afnt tms370c712afnt tms370c712bfnt fz 28 pin (50-mil pin spacing) ceramic leaded chip carrier (clcc) fz(s-cqcc-j**) j-leaded ceramic chip carrier se370c712afzt se370c712bfzt jd 28 pin (100-mil pin spacing) ceramic dual-in-line package (cdip) jd(r-cdip-t**) ceramic side-braze dual-in-line package se370c712ajdt se370c712bjdt n 28 pin (100-mil pin spacing) plastic dual-in-line package (pdip) n(r-pdip-t**) plastic dual-in-line package tms370c010ana tms370c010anl tms370c010ant tms370c012ana tms370c012anl tms370c012ant tms370c310ana tms370c310anl tms370c310ant tms370c311ana tms370c311anl tms370c311ant tms370c312ana tms370c312anl tms370c312ant tms370c712ant tms370c712bnt
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 46 post office box 1443 ? houston, texas 772511443 mechanical data jd (r-cdip-t**) ceramic side-braze dual-in-line package 4040087 / b 04/95 24 pin shown 2.650 (67,31) 52 pins ** 2.050 (52,07) (36,83) 1.450 0.590 (14,99) 0.620 (15,75) 1.250 dim a max (31,75) 24 28 40 (61,85) 2.435 48 0.012 (0,30) 0.008 (0,20) 0.020 (0,51) min seating plane 13 12 a 4 places 0.075 (1,91) max 0.045 (1,14) 0.065 (1,65) 24 1 0.021 (0,53) 0.015 (0,38) 0.125 (3,18) min 0.175 (4,45) 0.140 (3,56) typ 0.590 (15,00) 0 15 0.100 (2,54) notes: a. all linear dimensions are in inches (millimeters). b. this drawing is subject to change without notice. c. this package can be hermetically sealed with a metal lid. d. the terminals are gold plated.
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 47 post office box 1443 ? houston, texas 772511443 mechanical data n (r-pdip-t**) plastic dual-in-line package 24 pin shown 12 seating plane 0.560 (14,22) 0.520 (13,21) 13 0.610 (15,49) 0.590 (14,99) 52 48 40 0.125 (3,18) min 2.390 (60,71) (62,23) (53,09) (51,82) 2.040 2.090 2.450 2.650 (67,31) (65,79) 2.590 0.010 (0,25) nom 4040053 / b 04/95 a 0.060 (1,52) typ 1 24 32 28 24 1.230 (31,24) (32,26) (36,83) (35,81) 1.410 1.450 1.270 pins ** dim 0.015 (0,38) 0.021 (0,53) a min a max 1.650 (41,91) (40,89) 1.610 0.020 (0,51) min 0.200 (5,08) max 0.100 (2,54) m 0.010 (0,25) 0 15 notes: a. all linear dimensions are in inches (millimeters). b. this drawing is subject to change without notice. c. falls within jedec ms-011 d. falls within jedec ms-015 (32 pin only)
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 48 post office box 1443 ? houston, texas 772511443 mechanical data fn (s-pqcc-j**) plastic j-leaded chip carrier 4040005 / b 03/95 20 pin shown 0.026 (0,66) 0.032 (0,81) d2 / e2 0.020 (0,51) min 0.180 (4,57) max 0.120 (3,05) 0.090 (2,29) d2 / e2 0.013 (0,33) 0.021 (0,53) seating plane max d2 / e2 0.219 (5,56) 0.169 (4,29) 0.319 (8,10) 0.469 (11,91) 0.569 (14,45) 0.369 (9,37) max 0.356 (9,04) 0.456 (11,58) 0.656 (16,66) 0.008 (0,20) nom 1.158 (29,41) 0.958 (24,33) 0.756 (19,20) 0.191 (4,85) 0.141 (3,58) min 0.441 (11,20) 0.541 (13,74) 0.291 (7,39) 0.341 (8,66) 18 19 14 13 d d1 1 3 9 e1 e 4 8 min max min pins ** 20 28 44 0.385 (9,78) 0.485 (12,32) 0.685 (17,40) 52 68 84 1.185 (30,10) 0.985 (25,02) 0.785 (19,94) d/e 0.395 (10,03) 0.495 (12,57) 1.195 (30,35) 0.995 (25,27) 0.695 (17,65) 0.795 (20,19) no. of d1 / e1 0.350 (8,89) 0.450 (11,43) 1.150 (29,21) 0.950 (24,13) 0.650 (16,51) 0.750 (19,05) 0.004 (0,10) m 0.007 (0,18) 0.050 (1,27) notes: a. all linear dimensions are in inches (millimeters). b. this drawing is subject to change without notice. c. falls within jedec ms-018
tms370cx1x 8-bit microcontroller spns012f may 1987 revised february 1997 49 post office box 1443 ? houston, texas 772511443 mechanical data fz (s-cqcc-j**) j-leaded ceramic chip carrier 4040219 / b 03/95 0.180 (4,57) 0.140 (3,55) c 0.020 (0,51) 0.032 (0,81) a b a b 0.025 (0,64) r typ 0.026 (0,66) 0.120 (3,05) 0.155 (3,94) 0.014 (0,36) 0.120 (3,05) 0.040 (1,02) min 0.090 (2,29) 0.040 (1,02)  45 a min max 0.485 (12,32) (12,57) 0.495 0.455 (11,56) (10,92) 0.430 max min bc min max 0.410 (10,41) (10,92) 0.430 0.630 0.610 0.630 0.655 0.695 0.685 (16,00) (15,49) (16,00) (16,64) (17,65) (17,40) 0.740 0.680 0.730 0.765 0.795 0.785 (18,79) (17,28) (18,54) (19,43) (20,19) (19,94) pins** 28 44 52 no. of jedec mo-087ac mo-087ab mo-087aa outline 28 lead shown seating plane (at seating plane) 1 426 25 19 18 12 11 5 0.050 (1,27) 0.930 0.910 0.930 0.955 0.995 0.985 (23,62) (23,11) (23,62) (24,26) (25,27) (25,02) 68 mo-087ad notes: a. all linear dimensions are in inches (millimeters). b. this drawing is subject to change without notice. c. this package can be hermetically sealed with a ceramic lid using glass frit.
important notice texas instruments and its subsidiaries (ti) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current and complete. all products are sold subject to the terms and conditions of sale supplied at the time of order acknowledgement, including those pertaining to warranty, patent infringement, and limitation of liability. ti warrants performance of its semiconductor products to the specifications applicable at the time of sale in accordance with ti's standard warranty. testing and other quality control techniques are utilized to the extent ti deems necessary to support this warranty. specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements. certain applications using semiconductor products may involve potential risks of death, personal injury, or severe property or environmental damage (acritical applicationso). ti semiconductor products are not designed, authorized, or warranted to be suitable for use in life-support devices or systems or other critical applications. inclusion of ti products in such applications is understood to be fully at the customer's risk. in order to minimize risks associated with the customer's applications, adequate design and operating safeguards must be provided by the customer to minimize inherent or procedural hazards. ti assumes no liability for applications assistance or customer product design. ti does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of ti covering or relating to any combination, machine, or process in which such semiconductor products or services might be or are used. ti's publication of information regarding any third party's products or services does not constitute ti's approval, warranty or endorsement thereof. copyright ? 1998, texas instruments incorporated


▲Up To Search▲   

 
Price & Availability of TMS77C82

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X